package com.ansion.basedb.database.sql;

import android.text.TextUtils;

/**
 * created by zhaoyuntao
 * on 10/11/2023
 */
public class SQLColumn {
    public static final String NAME_COUNT = "COUNT(*)";

    public static String getColumnName(String tableName, String name) {
        return SQLColumn.NAME_COUNT.equals(name)
                || TextUtils.isEmpty(tableName) ? name : tableName + "." + name;
    }
}
